//
//  YLAboutUsViewController.m
//  YLFinanceService
//
//  Created by she1323 on 2017/10/16.
//  Copyright © 2017年 she1323. All rights reserved.
//  关于我们

#import "YLAboutUsViewController.h"
#import "YLWebViewController.h"
#import "XXPageTabView.h"
#import "XXPageTabItemLable.h"
#import "YLGlobeHeader.h"
#import "WHNetworkTool.h"
#import "YLAccountTool.h"
#import <YYModel.h>
#import "YLContentModel.h"
#import "YLTitleInfoModel.h"
#import "WHProgressHUD.h"
#import "YLImageViewViewController.h"
#import "YLGlobeHeader.h"
@interface YLAboutUsViewController ()
@property (nonatomic, strong) XXPageTabView *pageTabView;
@property (nonatomic, strong) NSMutableArray *contents;
@end

@implementation YLAboutUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"银来金服";
    _contents = [NSMutableArray arrayWithArray:@[@"", @"", @""]];
    [self setUpPageTabView];
    
    
}

- (void)setUpPageTabView
{
    YLImageViewViewController *vc1 = [[YLImageViewViewController alloc] init];
    vc1.imageName = @"companyIntroduction";
    vc1.height = YLScreenW * 1080 / 610.0;
    YLImageViewViewController *vc2 = [[YLImageViewViewController alloc] init];
    vc2.imageName = @"managementTeam";
    vc2.height = YLScreenW * 1080 / 338.0;
    YLImageViewViewController *vc3 = [[YLImageViewViewController alloc] init];
    vc3.imageName = @"developmentHistory";
    vc3.height = YLScreenW * 5791 / 2250.0;
    
    [self addChildViewController:vc1];
    [self addChildViewController:vc2];
    [self addChildViewController:vc3];
        
    //支持网易云音乐，今日头条，微博等切换栏效果
    self.pageTabView = [[XXPageTabView alloc] initWithChildControllers:self.childViewControllers childTitles:@[@"公司简介", @"管理团队", @"发展历程"]];
    self.pageTabView.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height -[UIApplication sharedApplication].statusBarFrame.size.height - 44);
    self.pageTabView.tabSize = CGSizeMake(YLScreenW, 44.0f);
    self.pageTabView.selectedColor = YLLOrgColor;
    self.pageTabView.separatorColor = YLColor(200, 200, 200);
    self.pageTabView.unSelectedColor = YLLineColor;
    self.pageTabView.indicatorHeight = 1.5;
    self.pageTabView.titleStyle = XXPageTabTitleStyleDefault;
    self.pageTabView.indicatorStyle = XXPageTabIndicatorStyleStretch;
    self.pageTabView.indicatorWidth = YLScreenW / 3.0 - 30;
    [self.view addSubview:self.pageTabView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
